Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add warning about derived API keys to docs #62351

Merged
merged 4 commits into from
Sep 17, 2020

Conversation

tvernum
Copy link
Contributor

@tvernum tvernum commented Sep 15, 2020

This updates the Create API Key reference document with
information about the limitations of derived API keys.

Since ES v7.6.0 (and v6.8.8), API keys that are created from an
API key (what we refer to as "derived API keys") must be created
with an empty privileges list (to explicitly match the effective
behaviour of all earlier versions).

This information was included in the release notes, but didn't get
added to the API reference.

Doc Preview: https://elasticsearch_62351.docs-preview.app.elstc.co/guide/en/elasticsearch/reference/master/security-api-create-api-key.html

Relates: #53647, #54522, #60154

This updates the Create API Key reference document with
information about the limitations of derived API keys.

Since ES v7.6.0, API keys that are created from an API key (what we
refer to as "derived API keys" must be created with an empty
privileges list (to explicitly match the effective behaviour of all
earlier versions).

This information was included in the release notes, but didn't get
added to the API reference.

Relates: elastic#53647, elastic#54522, elastic#60154
@tvernum tvernum added >docs General docs changes :Security/Authentication Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc) v8.0.0 v7.10.0 v6.8.13 v7.9.2 labels Sep 15, 2020
@tvernum tvernum requested review from ywangd and lcawl September 15, 2020 03:33
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-docs (>docs)

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-security (:Security/Authentication)

@elasticmachine elasticmachine added Team:Docs Meta label for docs team Team:Security Meta label for security team labels Sep 15, 2020
Copy link
Member

@ywangd ywangd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

x-pack/docs/en/rest-api/security/create-api-keys.asciidoc Outdated Show resolved Hide resolved
possible to create an API key that is a child of another API key, unless the derived
key is created without any privileges. In this case, you must explicitly specify a
role descriptor with no privileges, and the derived API key can be used for
authentication only, but will not have access to call {es} APIs.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically, it is not "only" the authentication, but a few actions that requires "the same user", e.g. it can also call GET _security/api_key?owner=true. Without complicating things too much by explaining all the details, maybe we could just drop the only bit.

@tvernum
Copy link
Contributor Author

tvernum commented Sep 17, 2020

@elasticmachine update branch

Copy link
Contributor

@lcawl lcawl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>docs General docs changes :Security/Authentication Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc) Team:Docs Meta label for docs team Team:Security Meta label for security team v6.8.13 v7.9.2 v7.10.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants